/* 添加全局样式 */
:root {
  --primary-color: #42b983;
  --secondary-color: #2c3e50;
  --background-color: #f8f9fa;
  --border-color: #e9ecef;
  --hover-color: #3aa876;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
  --primary-gradient: linear-gradient(135deg, #42b983 0%, #3aa876 100%);
  --error-color: #ff4757;
  --success-color: #2ed573;
  --warning-color: #ffa502;
  --text-color: #2c3e50;
  --text-light: #7f8c8d;
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
}

/* 通用容器样式优化 */
.container {
  max-width: 1200px;
  margin: 50px auto;
  padding: 2.5rem;
  background: linear-gradient(to bottom right, #ffffff, #f8f9fa);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.container:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

/* 标题样式优化 */
h1 {
  color: var(--secondary-color);
  margin-bottom: 1.8rem;
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  text-align: center;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  color: var(--secondary-color);
  margin-bottom: 1.2rem;
  font-size: 1.6rem;
  letter-spacing: -0.3px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

/* 按钮样式优化 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: var(--border-radius);
  background: var(--primary-gradient);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  margin: 0.5rem;
  min-width: 120px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(66, 185, 131, 0.25);
}

.btn:hover {
  background-color: var(--hover-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(66, 185, 131, 0.35);
}

/* 表单样式优化 */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 500;
  color: var(--secondary-color);
  font-size: 0.95rem;
}

.form-group input,
.form-group select {
  width: 100%;
  max-width: 400px;
  padding: 1rem 1.2rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #ffffff;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(66, 185, 131, 0.1);
}

/* 表格样式优化 */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

th, td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  font-size: 0.95rem;
}

th {
  background: var(--primary-gradient);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover {
  background-color: rgba(66, 185, 131, 0.05);
  transform: scale(1.01);
  transition: all 0.2s ease;
}

/* 响应式布局优化 */
@media (max-width: 768px) {
  .container {
    padding: 1.5rem;
    margin: 20px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .btn {
    width: 100%;
    margin: 0.5rem 0;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* 导航栏样式 */
.nav-container {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: rgba(66, 185, 131, 0.1);
  color: var(--primary-color);
}

.nav-link.active {
  background: var(--primary-gradient);
  color: white;
}

/* 为内容添加上边距，防止被导航栏遮挡 */
.main-content {
  margin-top: 80px;
}

@media (max-width: 768px) {
  .nav-container {
    padding: 1rem;
  }

  .nav-links {
    gap: 0.5rem;
  }

  .nav-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
} 